﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;
using System.Net.Security;

namespace ContractLibrary
{
    [ServiceContract(Namespace = "rf.services",
        CallbackContract = typeof(ICallbackClient),
        SessionMode = SessionMode.Allowed,
        ProtectionLevel = ProtectionLevel.None)]
    public interface IContractServer
    {
        [OperationContract(IsOneWay = true)]
        void voteForPlayer(int idJoueur);

        [OperationContract(IsOneWay = true)]
        void Connect();

        [OperationContract(IsOneWay = true)]
        void SendMessage(string message);


        [OperationContract(IsOneWay = false)]
        string voteForPlayer2(int idJoueur);
    }
}
